package cn.lanchengkeji.datafillingsystem.exception;

import lombok.Data;

@Data
public class BusinessCommonException extends RuntimeException {

    private String msg;

    private int code;


    public BusinessCommonException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public BusinessCommonException(int code, String msg) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public BusinessCommonException(String msg, int code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code = code;
    }

}
